

@mixin fade-motion($className, $keyframeName) {
    @include make-motion($className, $keyframeName, $animation-time-quick);
    .#{$className}-enter-active, .#{$className}-appear {
        opacity: 0;
        animation-timing-function: linear;
    }
    .#{$className}-leave-active {
        animation-timing-function: linear;
    }
}

@include fade-motion(fade, meFade);

@keyframes meFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes meFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
